var fs = require('fs');

var files = fs.readdirSync(__dirname + '/txt');
var generate = require('./generate');

files.forEach(function (file) {
    var desFileName = file.split('.')[0];
    generate(__dirname + '/txt/' + file, __dirname + '/xml/', desFileName + '.html');
});